package com.ruoyi.client.domain;

import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Objects;

/**
 * 客户表
 */
public class SysClient extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Integer id;
    /**
     * 公司名称
     */
    private String name;

    public SysClient(Integer id, String name, String addr, String email) {
        this.id = id;
        this.name = name;
        this.addr = addr;
        this.email = email;
    }

    /**
     * 公司地址
     */
    private String addr;
    /**
     * 公司邮箱
     */
    private String email;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysClient sysClient = (SysClient) o;
        return Objects.equals(id, sysClient.id) && Objects.equals(name, sysClient.name) && Objects.equals(addr, sysClient.addr) && Objects.equals(email, sysClient.email);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, addr, email);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
